home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news, Non-ISO extended-ASCII text
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 65 | 77 73 66 65 65 64 73 2e |Path: ne|wsfeeds.|
|00000010| 61 6e 73 2e 6e 65 74 21 | 62 74 63 6f 21 6e 65 77 |ans.net!|btco!new|
|00000020| 73 61 64 6d 0a 46 72 6f | 6d 3a 20 53 68 61 6c 6f |sadm.Fro|m: Shalo|
|00000030| 6d 20 52 65 69 63 68 20 | 3c 73 71 72 31 38 37 34 |m Reich |<sqr1874|
|00000040| 40 61 63 66 34 2e 6e 79 | 75 2e 65 64 75 3e 0a 4e |@acf4.ny|u.edu>.N|
|00000050| 65 77 73 67 72 6f 75 70 | 73 3a 20 63 6f 6d 70 2e |ewsgroup|s: comp.|
|00000060| 6c 61 6e 67 2e 63 2b 2b | 0a 53 75 62 6a 65 63 74 |lang.c++|.Subject|
|00000070| 3a 20 52 65 3a 20 43 2b | 2b 20 65 71 75 69 76 61 |: Re: C+|+ equiva|
|00000080| 6c 65 6e 74 73 20 6f 66 | 20 66 72 65 61 64 28 29 |lents of| fread()|
|00000090| 2c 20 66 77 72 69 74 65 | 28 29 2c 20 66 66 6c 75 |, fwrite|(), fflu|
|000000a0| 73 68 28 29 20 3f 0a 44 | 61 74 65 3a 20 54 75 65 |sh() ?.D|ate: Tue|
|000000b0| 2c 20 32 37 20 46 65 62 | 20 31 39 39 36 20 31 35 |, 27 Feb| 1996 15|
|000000c0| 3a 34 37 3a 32 31 20 2d | 30 35 30 30 0a 4f 72 67 |:47:21 -|0500.Org|
|000000d0| 61 6e 69 7a 61 74 69 6f | 6e 3a 20 42 61 6e 6b 65 |anizatio|n: Banke|
|000000e0| 72 73 20 54 72 75 73 74 | 20 43 6f 6d 70 61 6e 79 |rs Trust| Company|
|000000f0| 0a 4d 65 73 73 61 67 65 | 2d 49 44 3a 20 3c 33 31 |.Message|-ID: <31|
|00000100| 33 33 36 44 44 39 2e 35 | 34 34 43 40 61 63 66 34 |336DD9.5|44C@acf4|
|00000110| 2e 6e 79 75 2e 65 64 75 | 3e 0a 52 65 66 65 72 65 |.nyu.edu|>.Refere|
|00000120| 6e 63 65 73 3a 20 3c 34 | 67 74 39 6e 66 24 6c 65 |nces: <4|gt9nf$le|
|00000130| 66 40 6e 63 61 72 2e 75 | 63 61 72 2e 65 64 75 3e |f@ncar.u|car.edu>|
|00000140| 0a 4e 4e 54 50 2d 50 6f | 73 74 69 6e 67 2d 48 6f |.NNTP-Po|sting-Ho|
|00000150| 73 74 3a 20 61 6c 67 73 | 76 77 30 30 35 38 2e 62 |st: algs|vw0058.b|
|00000160| 74 63 6f 2e 63 6f 6d 0a | 4d 69 6d 65 2d 56 65 72 |tco.com.|Mime-Ver|
|00000170| 73 69 6f 6e 3a 20 31 2e | 30 0a 43 6f 6e 74 65 6e |sion: 1.|0.Conten|
|00000180| 74 2d 54 79 70 65 3a 20 | 74 65 78 74 2f 70 6c 61 |t-Type: |text/pla|
|00000190| 69 6e 3b 20 63 68 61 72 | 73 65 74 3d 69 73 6f 2d |in; char|set=iso-|
|000001a0| 38 38 35 39 2d 31 0a 43 | 6f 6e 74 65 6e 74 2d 54 |8859-1.C|ontent-T|
|000001b0| 72 61 6e 73 66 65 72 2d | 45 6e 63 6f 64 69 6e 67 |ransfer-|Encoding|
|000001c0| 3a 20 38 62 69 74 0a 58 | 2d 4d 61 69 6c 65 72 3a |: 8bit.X|-Mailer:|
|000001d0| 20 4d 6f 7a 69 6c 6c 61 | 20 32 2e 30 20 28 57 69 | Mozilla| 2.0 (Wi|
|000001e0| 6e 4e 54 3b 20 49 29 0a | 54 6f 3a 20 6a 61 64 61 |nNT; I).|To: jada|
|000001f0| 6d 73 40 73 61 67 65 2e | 63 67 64 2e 75 63 61 72 |ms@sage.|cgd.ucar|
|00000200| 2e 65 64 75 0a 0a 4a 61 | 6d 65 73 20 41 64 61 6d |.edu..Ja|mes Adam|
|00000210| 73 20 77 72 6f 74 65 3a | 0a 3e 20 0a 3e 20 20 20 |s wrote:|.> .> |
|00000220| 20 20 20 20 20 20 49 27 | 76 65 20 62 65 65 6e 20 | I'|ve been |
|00000230| 61 62 6c 65 20 74 6f 20 | 64 65 74 65 72 6d 69 6e |able to |determin|
|00000240| 65 20 74 68 61 74 20 74 | 68 65 72 65 20 69 73 20 |e that t|here is |
|00000250| 61 20 3c 66 73 74 72 65 | 61 6d 2e 68 3e 20 77 68 |a <fstre|am.h> wh|
|00000260| 69 63 68 0a 3e 20 6d 61 | 6b 65 73 20 61 76 61 69 |ich.> ma|kes avai|
|00000270| 6c 61 62 6c 65 20 6f 66 | 73 74 72 65 61 6d 2c 20 |lable of|stream, |
|00000280| 69 66 73 74 72 65 61 6d | 2c 20 61 6e 64 20 66 73 |ifstream|, and fs|
|00000290| 74 72 65 61 6d 20 6f 62 | 6a 65 63 74 73 2e 20 20 |tream ob|jects. |
|000002a0| 49 20 68 61 76 65 20 79 | 65 74 20 74 6f 0a 3e 20 |I have y|et to.> |
|000002b0| 66 69 6e 64 20 61 6e 79 | 20 72 65 66 65 72 65 6e |find any| referen|
|000002c0| 63 65 20 77 68 69 63 68 | 20 65 78 70 6c 61 69 6e |ce which| explain|
|000002d0| 73 20 68 6f 77 20 74 6f | 20 75 73 65 20 74 68 65 |s how to| use the|
|000002e0| 73 65 20 6f 62 6a 65 63 | 74 73 2e 20 20 57 68 61 |se objec|ts. Wha|
|000002f0| 74 20 49 20 77 61 6e 74 | 0a 3e 20 69 73 20 61 6e |t I want|.> is an|
|00000300| 20 65 78 70 6c 61 6e 61 | 74 69 6f 6e 20 6f 66 20 | explana|tion of |
|00000310| 77 68 61 74 20 74 68 65 | 20 6d 65 6d 62 65 72 20 |what the| member |
|00000320| 66 75 6e 63 74 69 6f 6e | 73 20 61 72 65 20 66 6f |function|s are fo|
|00000330| 72 20 74 68 65 73 65 20 | 63 6c 61 73 73 65 73 2c |r these |classes,|
|00000340| 0a 3e 20 74 68 65 20 70 | 61 72 61 6d 65 74 65 72 |.> the p|arameter|
|00000350| 73 20 74 68 65 79 20 74 | 61 6b 65 2c 20 65 74 63 |s they t|ake, etc|
|00000360| 2e 0a 3e 0a 0a 4c 6f 6f | 6b 20 69 6e 20 74 68 65 |..>..Loo|k in the|
|00000370| 20 68 65 61 64 65 72 20 | 66 69 6c 65 20 66 6f 72 | header |file for|
|00000380| 20 74 68 65 20 66 75 6e | 63 74 69 6f 6e 73 2c 20 | the fun|ctions, |
|00000390| 70 61 72 61 6d 65 74 65 | 72 73 20 65 74 63 2e 0a |paramete|rs etc..|
|000003a0| 0a 46 6f 72 20 4d 53 20 | 56 43 20 34 2e 30 3a 0a |.For MS |VC 4.0:.|
|000003b0| 0a 4f 70 65 72 61 74 69 | 6f 6e 73 20 2d 20 50 75 |.Operati|ons - Pu|
|000003c0| 62 6c 69 63 20 4d 65 6d | 62 65 72 73 0a 6f 70 65 |blic Mem|bers.ope|
|000003d0| 6e 20 20 20 20 20 20 4f | 70 65 6e 73 20 61 20 66 |n O|pens a f|
|000003e0| 69 6c 65 20 61 6e 64 20 | 61 74 74 61 63 68 65 73 |ile and |attaches|
|000003f0| 20 69 74 20 74 6f 20 74 | 68 65 20 66 69 6c 65 62 | it to t|he fileb|
|00000400| 75 66 20 6f 62 6a 65 63 | 74 20 61 6e 64 20 74 68 |uf objec|t and th|
|00000410| 75 73 20 74 6f 20 74 68 | 65 20 0a 73 74 72 65 61 |us to th|e .strea|
|00000420| 6d 2e 0a 63 6c 6f 73 65 | 20 20 20 20 20 46 6c 75 |m..close| Flu|
|00000430| 73 68 65 73 20 61 6e 79 | 20 77 61 69 74 69 6e 67 |shes any| waiting|
|00000440| 20 6f 75 74 70 75 74 20 | 61 6e 64 20 63 6c 6f 73 | output |and clos|
|00000450| 65 73 20 74 68 65 20 73 | 74 72 65 61 6d 92 73 20 |es the s|tream.s |
|00000460| 66 69 6c 65 2e 0a 73 65 | 74 62 75 66 20 20 20 20 |file..se|tbuf |
|00000470| 41 74 74 61 63 68 65 73 | 20 74 68 65 20 73 70 65 |Attaches| the spe|
|00000480| 63 69 66 69 65 64 20 72 | 65 73 65 72 76 65 20 61 |cified r|eserve a|
|00000490| 72 65 61 20 74 6f 20 74 | 68 65 20 73 74 72 65 61 |rea to t|he strea|
|000004a0| 6d 92 73 20 66 69 6c 65 | 62 75 66 20 6f 62 6a 65 |m.s file|buf obje|
|000004b0| 63 74 2e 0a 73 65 74 6d | 6f 64 65 20 20 20 53 65 |ct..setm|ode Se|
|000004c0| 74 73 20 74 68 65 20 73 | 74 72 65 61 6d 92 73 20 |ts the s|tream.s |
|000004d0| 6d 6f 64 65 20 74 6f 20 | 62 69 6e 61 72 79 20 6f |mode to |binary o|
|000004e0| 72 20 74 65 78 74 2e 0a | 61 74 74 61 63 68 20 20 |r text..|attach |
|000004f0| 20 20 41 74 74 61 63 68 | 65 73 20 74 68 65 20 73 | Attach|es the s|
|00000500| 74 72 65 61 6d 20 28 74 | 68 72 6f 75 67 68 20 74 |tream (t|hrough t|
|00000510| 68 65 20 66 69 6c 65 62 | 75 66 20 6f 62 6a 65 63 |he fileb|uf objec|
|00000520| 74 29 20 74 6f 20 61 6e | 20 6f 70 65 6e 20 66 69 |t) to an| open fi|
|00000530| 6c 65 2e 0a 0a 53 74 61 | 74 75 73 2f 49 6e 66 6f |le...Sta|tus/Info|
|00000540| 72 6d 61 74 69 6f 6e 20 | 2d 20 50 75 62 6c 69 63 |rmation |- Public|
|00000550| 20 4d 65 6d 62 65 72 73 | 0a 72 64 62 75 66 20 20 | Members|.rdbuf |
|00000560| 20 20 20 47 65 74 73 20 | 74 68 65 20 73 74 72 65 | Gets |the stre|
|00000570| 61 6d 92 73 20 66 69 6c | 65 62 75 66 20 6f 62 6a |am.s fil|ebuf obj|
|00000580| 65 63 74 2e 0a 66 64 20 | 20 20 20 20 20 20 20 52 |ect..fd | R|
|00000590| 65 74 75 72 6e 73 20 74 | 68 65 20 66 69 6c 65 20 |eturns t|he file |
|000005a0| 64 65 73 63 72 69 70 74 | 6f 72 20 61 73 73 6f 63 |descript|or assoc|
|000005b0| 69 61 74 65 64 20 77 69 | 74 68 20 74 68 65 20 73 |iated wi|th the s|
|000005c0| 74 72 65 61 6d 2e 0a 69 | 73 5f 6f 70 65 6e 20 20 |tream..i|s_open |
|000005d0| 20 54 65 73 74 73 20 77 | 68 65 74 68 65 72 20 74 | Tests w|hether t|
|000005e0| 68 65 20 73 74 72 65 61 | 6d 92 73 20 66 69 6c 65 |he strea|m.s file|
|000005f0| 20 69 73 20 6f 70 65 6e | 2e 0a 0a 50 75 74 74 69 | is open|...Putti|
|00000600| 6e 67 20 41 53 43 49 49 | 20 64 61 74 61 20 74 6f |ng ASCII| data to|
|00000610| 20 61 6e 20 6f 75 74 70 | 75 74 20 66 69 6c 65 20 | an outp|ut file |
|00000620| 28 63 61 6c 6c 65 64 20 | 22 69 6e 73 65 72 74 69 |(called |"inserti|
|00000630| 6e 67 20 6f 6e 74 6f 20 | 61 20 73 74 72 65 61 6d |ng onto |a stream|
|00000640| 22 20 0a 69 6e 20 43 2b | 2b 29 20 69 73 20 64 6f |" .in C+|+) is do|
|00000650| 6e 65 20 77 69 74 68 20 | 74 68 65 20 3c 3c 20 6f |ne with |the << o|
|00000660| 70 65 72 61 74 6f 72 20 | 28 69 2e 65 2e 20 20 69 |perator |(i.e. i|
|00000670| 6e 74 20 78 20 3d 20 35 | 3b 20 63 6f 75 74 20 3c |nt x = 5|; cout <|
|00000680| 3c 20 78 3b 20 29 20 0a | 61 6e 64 20 72 65 61 64 |< x; ) .|and read|
|00000690| 69 6e 67 20 41 53 43 49 | 49 20 64 61 74 61 20 66 |ing ASCI|I data f|
|000006a0| 72 6f 6d 20 61 20 66 69 | 6c 65 20 28 63 61 6c 6c |rom a fi|le (call|
|000006b0| 65 64 20 22 65 78 74 72 | 61 63 74 69 6e 67 20 66 |ed "extr|acting f|
|000006c0| 72 6f 6d 20 61 20 73 74 | 72 65 61 6d 22 29 20 0a |rom a st|ream") .|
|000006d0| 69 73 20 64 6f 6e 65 20 | 77 69 74 68 20 74 68 65 |is done |with the|
|000006e0| 20 3e 3e 20 6f 70 65 72 | 61 74 6f 72 20 28 69 2e | >> oper|ator (i.|
|000006f0| 65 2e 20 69 6e 74 20 78 | 3b 20 63 69 6e 20 3e 3e |e. int x|; cin >>|
|00000700| 20 78 3b 20 29 2e 20 20 | 0a 0a 49 20 61 6d 20 6e | x; ). |..I am n|
|00000710| 6f 74 20 73 75 72 65 20 | 68 6f 77 20 74 6f 20 72 |ot sure |how to r|
|00000720| 65 61 64 20 61 6e 64 20 | 77 72 69 74 65 20 64 61 |ead and |write da|
|00000730| 74 61 20 69 6e 20 2a 62 | 69 6e 61 72 79 2a 20 66 |ta in *b|inary* f|
|00000740| 6f 72 6d 61 74 20 28 61 | 73 20 6f 70 70 6f 73 65 |ormat (a|s oppose|
|00000750| 64 20 74 6f 20 0a 41 53 | 43 49 49 29 2e 0a 0a 3e |d to .AS|CII)...>|
|00000760| 20 0a 3e 20 20 20 20 20 | 20 20 20 20 45 73 73 65 | .> | Esse|
|00000770| 6e 74 69 61 6c 6c 79 20 | 61 6c 6c 20 49 20 6e 65 |ntially |all I ne|
|00000780| 65 64 20 74 6f 20 64 6f | 20 69 73 20 72 65 70 6c |ed to do| is repl|
|00000790| 61 63 65 20 66 72 65 61 | 64 28 29 2c 20 66 77 72 |ace frea|d(), fwr|
|000007a0| 69 74 65 28 29 2c 20 61 | 6e 64 0a 3e 20 66 66 6c |ite(), a|nd.> ffl|
|000007b0| 75 73 68 28 29 20 77 69 | 74 68 20 74 68 65 69 72 |ush() wi|th their|
|000007c0| 20 43 2b 2b 20 65 71 75 | 69 76 61 6c 65 6e 74 73 | C++ equ|ivalents|
|000007d0| 20 28 49 20 67 75 65 73 | 73 20 49 20 6e 65 65 64 | (I gues|s I need|
|000007e0| 20 66 6f 70 65 6e 28 29 | 20 61 6e 64 20 66 63 6c | fopen()| and fcl|
|000007f0| 6f 73 65 28 29 0a 3e 20 | 65 71 75 69 76 61 6c 65 |ose().> |equivale|
|00000800| 6e 74 73 20 61 73 20 77 | 65 6c 6c 29 2e 20 20 50 |nts as w|ell). P|
|00000810| 6c 65 61 73 65 20 6c 65 | 74 20 6d 65 20 6b 6e 6f |lease le|t me kno|
|00000820| 77 20 69 66 20 79 6f 75 | 20 6b 6e 6f 77 20 6f 66 |w if you| know of|
|00000830| 20 61 20 72 65 66 65 72 | 65 6e 63 65 0a 3e 20 77 | a refer|ence.> w|
|00000840| 68 69 63 68 20 65 78 70 | 6c 61 69 6e 73 20 74 68 |hich exp|lains th|
|00000850| 65 73 65 20 28 61 6e 20 | 6f 6e 6c 69 6e 65 20 72 |ese (an |online r|
|00000860| 65 66 65 72 65 6e 63 65 | 20 77 6f 75 6c 64 20 62 |eference| would b|
|00000870| 65 20 68 65 61 76 65 6e | 6c 79 29 2c 20 6f 72 20 |e heaven|ly), or |
|00000880| 69 66 20 79 6f 75 0a 3e | 20 68 61 76 65 20 61 6e |if you.>| have an|
|00000890| 79 20 73 75 67 67 65 73 | 74 69 6f 6e 73 20 61 73 |y sugges|tions as|
|000008a0| 20 74 6f 20 77 68 61 74 | 20 49 20 73 68 6f 75 6c | to what| I shoul|
|000008b0| 64 20 62 65 20 73 65 61 | 72 63 68 69 6e 67 20 66 |d be sea|rching f|
|000008c0| 6f 72 2e 0a 3e 20 0a 0a | 41 64 64 69 73 6f 6e 2d |or..> ..|Addison-|
|000008d0| 57 65 73 6c 65 79 20 70 | 75 62 6c 69 73 68 65 73 |Wesley p|ublishes|
|000008e0| 20 61 20 62 6f 6f 6b 20 | 22 43 2b 2b 20 49 4f 53 | a book |"C++ IOS|
|000008f0| 74 72 65 61 6d 73 20 48 | 61 6e 64 62 6f 6f 6b 22 |treams H|andbook"|
|00000900| 20 62 79 20 54 65 61 6c | 65 20 28 24 33 39 2e 37 | by Teal|e ($39.7|
|00000910| 36 0a 69 6e 20 74 68 65 | 69 72 20 6c 61 74 65 73 |6.in the|ir lates|
|00000920| 74 20 63 61 74 61 6c 6f | 67 29 2e 20 20 54 68 65 |t catalo|g). The|
|00000930| 69 72 20 6e 75 6d 62 65 | 72 20 69 73 20 31 2d 38 |ir numbe|r is 1-8|
|00000940| 30 30 2d 38 32 34 2d 37 | 37 39 39 2e 0a 0a 47 6f |00-824-7|799...Go|
|00000950| 6f 64 20 6c 75 63 6b 2e | 0a 0a 53 68 61 6c 6f 6d |od luck.|..Shalom|
|00000960| 20 72 65 69 63 68 0a | | reich. | |
+--------+-------------------------+-------------------------+--------+--------+